package com.gitee.qdbp.general.common.api.event.service;

import java.util.List;
import com.gitee.qdbp.able.exception.ServiceException;

public interface IEventTrigger {

    void beforeCreate(String dataType, Object object) throws ServiceException;

    void afterCreate(String dataType, Object object) throws ServiceException;

    void beforeCreate(String dataType, List<?> object) throws ServiceException;

    void afterCreate(String dataType, List<?> object) throws ServiceException;

    void beforeUpdate(String dataType, Object object) throws ServiceException;

    void afterUpdate(String dataType, Object object) throws ServiceException;

    void beforeDelete(String dataType, Object object) throws ServiceException;

    void afterDelete(String dataType, Object object) throws ServiceException;
}
